import App from './App'

// #ifdef VUE3

import { createSSRApp } from 'vue'
import { createPinia } from 'pinia'
// import createPersistedState from 'pinia-plugin-persistedstate'
import { piniaPluginPersistedstate } from '@/stores/persist.js'
import '@/utils/utils'

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

export function createApp() {
  const app = createSSRApp(App)
  app.use(pinia)
  return {
    app,
  }
}
// #endif
